package com.ems.service.Invigilate.room;

import com.ems.pojo.Invigilate.room.RoomUser;
import com.ems.pojo.Invigilate.room.TestRoom;
import com.ems.pojo.user.User;
import sun.rmi.server.UnicastServerRef;

import java.util.List;
import java.util.Map;

/**
 * @Auther: 伟伟
 * @Date: 2020/2/18
 * @Description: 描述
 * @Version: 1.0
 */
public interface RoomUserService {
    public List<RoomUser> getRoomUserByTrId(int tr_id);

    public List<RoomUser> getUnRoomUserByTrId(int tr_id);

    public void allowUser(RoomUser roomUser);

    public void deleteAllowUser(List<RoomUser> roomUsers);

    public List<User> getRoomUserInfo(Map<String,Object> map, User user);

    public void deleteAlreadyUser(List<User> userList);

    public List<RoomUser> getStudentApply(Map<String,Object> map, User user);

    public void deleteApplyTestRoom(List<RoomUser> list,User user);

    public int agreeApplyTestRoom(TestRoom testRoom,User user);

    public List<RoomUser> getAlreadyTestRooInfo(Map<String,Object> map, User user);

    public void exitAlreadyTestRoom(List<RoomUser> roomUserList);

    public void deleteRoomUserById(List<User> list);

    public void deleteRoomUserByTrId(int tr_id);

}
